//
//  TempViewController.swift
//  Weibo
//
//  Created by 张小东 on 16/1/20.
//  Copyright © 2016年 Mr.Zhang. All rights reserved.
//

import UIKit

class TempViewController: UIViewController {

    @objc private func push() {
        let temp = TempViewController()
        navigationController?.pushViewController(temp, animated: true)
    }
//    @objc private func back() {
//        navigationController?.popViewControllerAnimated(true)
//        
//    }
    
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // 手写代码的视图控制器的背景颜色 
        view.backgroundColor = UIColor.lightGrayColor()
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", style: .Plain, target: self, action: "push")
        
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
